//
//  PostContentCellData.m
//  CKApp
//
//  Created by CC on 2020/9/12.
//  Copyright © 2020 This Moment. All rights reserved.
//

#import "PostContentCellData.h"
#import "PostContentCell.h"

@interface PostContentCellData ()

@end

@implementation PostContentCellData

+ (instancetype)cellDataWithContent:(NSString*)text
                 doneClickedHandler:(OnClickedHandler)doneClickedHandler {
  PostContentCellData* cellData = [[PostContentCellData alloc] init];
  cellData.text = text;
  cellData.doneClickHandler = doneClickedHandler;
  return cellData;
}

- (void)refreshCell:(__kindof PostContentCell*)cell {
  [super refreshCell:cell];
  cell.textView.text = self.text;
}

@end
